<link rel="stylesheet" href="lib/codemirror.css"/>
<script src="lib/codemirror.js"></script>
<link rel="stylesheet" href="mode/css/css.css"/>
<script src="mode/css/css.js"></script>

<style>
.CodeMirror {
  border:1px solid #777; height:auto; width:100%;
}
</style>

<textarea id="txt_test">
.lorem-ipsum-css {}
#lorem-ipsum-css {}
</textarea>

<script>
CodeMirror.fromTextArea(document.getElementById("txt_test"), {
  lineNumbers:true
});
</script>
